#代码目录
code_path=$PWD

git pull

cd ${code_path}/common
rm -rf ./dist
n exec v20.11.0 pnpm i
n exec v20.11.0 pnpm build

cd ${code_path}/buyer
rm -rf ./dist
n exec v20.11.0 pnpm i
n exec v20.11.0 pnpm build

cd ${code_path}/im
rm -rf ./dist
n exec v20.11.0 pnpm i
n exec v20.11.0 pnpm build

cd ${code_path}/manager
rm -rf ./dist
n exec v20.11.0 pnpm i
n exec v20.11.0 pnpm build

cd ${code_path}/seller
rm -rf ./dist
n exec v20.11.0 pnpm i
n exec v20.11.0 pnpm build
